Conversation
Contributor
Author
|
@bugout-dev check
|
Contributor
|
I tested locally using the modifications on this branch: #747 My config ( [
{
"blockchain": "ethereum",
"endpoint": "<Infura URL>",
"tags": ["infura"]
},
{
"blockchain": "polygon",
"endpoint": "<Infura URL>",
"tags": ["infura"]
},
{
"blockchain": "polygon",
"endpoint": "<Alchemy URL>",
"tags": ["alchemy"]
}
]When I ran this request, I sometimes got the Infura URL in the curl -v --request POST "http://127.0.0.1:8544/nb/polygon/jsonrpc?access_id=$NB_CONTROLLER_ACCESS_ID&data_source=blockchain&tags=alchemy" \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc":"2.0",
"method":"eth_blockNumber",
"id":1
}'Am I using the wrong query parameter? |
Contributor
|
@kompotkot : I think it needs documentation for how to use tags, and I think you can probably also write unit tests for the node selection function. The unit tests are currently failing. This should be fixed, as well. If necessary, remove tests, but there should be a working test framework. |
Contributor
|
@kompotkot : My bad. I was using This request is working well: curl -v --request POST "http://127.0.0.1:8544/nb/polygon/jsonrpc?access_id=$NB_CONTROLLER_ACCESS_ID&data_source=blockchain&tag=alchemy" \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc":"2.0",
"method":"eth_blockNumber",
"id":1
}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Nobebalancer support of filter by tag.
How to test these changes?
Tested locally
Related issues